package c.b.a.a;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import b.i.b.f;
import c.e.b.h.e.b;
import c.h.a.m0.h;
import com.huawei.hms.common.internal.ResponseErrorCode;
import com.huawei.hms.support.log.HMSLog;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.xmlpull.v1.XmlPullParser;

/* compiled from: outline */
public class a {
    public static String A(String str, int i) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(i);
        return stringBuilder.toString();
    }

    public static String B(String str, long j) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(j);
        return stringBuilder.toString();
    }

    public static String C(String str, Fragment fragment, String str2) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(fragment);
        stringBuilder.append(str2);
        return stringBuilder.toString();
    }

    public static String D(String str, String str2) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(str2);
        return stringBuilder.toString();
    }

    public static String E(String str, String str2, String str3) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(str2);
        stringBuilder.append(str3);
        return stringBuilder.toString();
    }

    public static float a(float f, float f2, float f3, float f4) {
        return ((f - f2) * f3) + f4;
    }

    public static int b(ResponseErrorCode responseErrorCode, StringBuilder stringBuilder, String str) {
        stringBuilder.append(responseErrorCode.getErrorCode());
        HMSLog.i(str, stringBuilder.toString());
        return responseErrorCode.getStatusCode();
    }

    public static String c(StringBuilder stringBuilder, int i, String str) {
        stringBuilder.append(i);
        stringBuilder.append(str);
        return stringBuilder.toString();
    }

    public static String d(StringBuilder stringBuilder, String str, String str2) {
        stringBuilder.append(str);
        stringBuilder.append(str2);
        return stringBuilder.toString();
    }

    public static String e(StringBuilder stringBuilder, String str, String str2, String str3) {
        stringBuilder.append(str);
        stringBuilder.append(str2);
        stringBuilder.append(str3);
        return stringBuilder.toString();
    }

    public static String f(XmlPullParser xmlPullParser, StringBuilder stringBuilder, String str) {
        stringBuilder.append(xmlPullParser.getPositionDescription());
        stringBuilder.append(str);
        return stringBuilder.toString();
    }

    public static StringBuilder g(String str) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        return stringBuilder;
    }

    public static StringBuilder h(String str, int i, String str2) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(i);
        stringBuilder.append(str2);
        return stringBuilder;
    }

    public static StringBuilder i(String str, String str2) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(str2);
        return stringBuilder;
    }

    public static StringBuilder j(String str, String str2, String str3) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(str2);
        stringBuilder.append(str3);
        return stringBuilder;
    }

    public static Map k() {
        return Collections.synchronizedMap(new HashMap());
    }

    public static void l(int i, StringBuilder stringBuilder, String str) {
        stringBuilder.append(c.f.a.a.a.a.s(i));
        stringBuilder.append(str);
    }

    public static int m(ArrayList arrayList, com.liuzh.deviceinfo.appinfo.appanalyze.AppsAnalyzeResultDetailView.a aVar, List list, int i) {
        arrayList.add(aVar);
        return list.size() + i;
    }

    public static void n(Context context, int i, StringBuilder stringBuilder, String str) {
        stringBuilder.append(context.getString(i));
        stringBuilder.append(str);
    }

    public static void o(SharedPreferences sharedPreferences, String str, int i) {
        sharedPreferences.edit().putInt(str, i).apply();
    }

    public static void p(SharedPreferences sharedPreferences, String str, boolean z) {
        sharedPreferences.edit().putBoolean(str, z).apply();
    }

    public static void q(TextView textView, Context context, String str) {
        h.f(context, str, textView.getText().toString());
    }

    public static void r(Exception exception, StringBuilder stringBuilder, String str) {
        stringBuilder.append(exception.getMessage());
        HMSLog.e(str, stringBuilder.toString());
    }

    public static void s(Exception exception, StringBuilder stringBuilder, String str, boolean z) {
        stringBuilder.append(exception.getMessage());
        com.huawei.hms.base.ui.a.a(str, stringBuilder.toString(), z);
    }

    public static void t(String str, int i, String str2) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(i);
        HMSLog.i(str2, stringBuilder.toString());
    }

    public static void u(String str, String str2, b bVar) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(str);
        stringBuilder.append(str2);
        bVar.b(stringBuilder.toString());
    }

    public static void v(StringBuilder stringBuilder, String str, char c, String str2) {
        stringBuilder.append(str);
        stringBuilder.append(c);
        stringBuilder.append(str2);
    }

    public static void w(StringBuilder stringBuilder, String str, Resources resources, int i, TextView textView) {
        stringBuilder.append(str);
        stringBuilder.append(resources.getString(i));
        textView.setText(stringBuilder.toString());
    }

    public static Drawable x(Drawable drawable, int i) {
        drawable = f.k1(drawable.mutate());
        drawable.setTint(i);
        return drawable;
    }

    public static void y(StringBuilder stringBuilder, String str, String str2, String str3, String str4) {
        stringBuilder.append(str);
        stringBuilder.append(str2);
        stringBuilder.append(str3);
        stringBuilder.append(str4);
    }

    public static String z(RecyclerView recyclerView, StringBuilder stringBuilder) {
        stringBuilder.append(recyclerView.A());
        return stringBuilder.toString();
    }
}
